<?php 
namespace Modules\ShopApi\Models;
class ShopVisit extends BaseApiModel
{
	 
	/**
	 * @name  前台访问
	 * @return json 
	 */
    public function set_visit(){
		$this->insert([
			'ip'=> request()->getClientIp(),
			'created_at'=>date('Y-m-d H:i:s')
		]); 
		return $this->api_success();			
	}
}
